package top.wardyan.wdev.dbdevassist.service.impl;

import top.wardyan.wdev.dbdevassist.model.YTUser;
import top.wardyan.wdev.dbdevassist.service.IYTUserService;

public class YTUserServiceImpl extends MasterServiceImpl<YTUser> implements IYTUserService{

	public YTUserServiceImpl(YTUser dao) {
		super(dao);
	}

	@Override
	public YTUser find(String xAccount) {
		return this.findBySql(this.sql + " WHERE xAccount = ?", xAccount);
	}

	@Override
	public YTUser find(String xAccount, String xPassword) {
		return this.findBySql(this.sql + " WHERE xAccount = ? AND xPassword = ?", xAccount, xPassword);
	}

}
